import {Input} from "antd";
import FormItem from "antd/es/form/FormItem";
import {EmailInputProps} from "./dev.tsx";
import {removeSetter} from "../../../utils/removeSetter.ts";
const EmailInputProd = (props:EmailInputProps) => {
    const { styles } = props
    const ComponentProps = removeSetter({...props},["children","parentId"])
    return (
        <div style={styles}>
            <FormItem>
                <FormItem  label={props.label} name={props.name} rules={props.rule} style={{margin:"0",...styles}}>
                    <Input {...ComponentProps} />
                </FormItem>
            </FormItem>
        </div>
    )

};

export default EmailInputProd;